-- GENERATED SPELL FOR [Eye Stalk] --


function spell0_16236(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(29407,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16236', 6000, 1)
end

function spell1_16236(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(54805,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16236', 6000, 1)
end

function Sorts_16236(pUnit, Event)
local choix_sorts_16236 = math.random(0, 1)
if choix_sorts_16236 == 0 then
pUnit:RegisterEvent('spell0_16236', 1, 1)
end
if choix_sorts_16236 == 1 then
pUnit:RegisterEvent('spell1_16236', 1, 1)
end
end

function mob16236_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16236', math.random(1500, 3000), 1)
end

function mob16236_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16236_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16236_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16236, 1, 'mob16236_Action')
RegisterUnitEvent(16236, 2, 'mob16236_Leave')
RegisterUnitEvent(16236, 3, 'mob16236_Kill')
RegisterUnitEvent(16236, 4, 'mob16236_Die')
